/* 常用初始化样式 */

body,
ul,
ol,
li,
p,
h1,
h2,
h3,
h4,
h5,
h6,
form,
fieldset,
table,
td,
img,
div {
    margin: 0;
    padding: 0;
    border: 0;
}

body {
    width: 100%;
    min-width: 320px;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    font-size: 14px;
    font-family: -apple-system, Helvetica, sans-serif;
    line-height: 1.5;
    color: #666;
}


/*点击高亮我们需要清除清除  设置为transparent 完成透明*/

* {
    -webkit-tap-highlight-color: transparent;
}


/*在移动端浏览器默认的外观在iOS上加上这个属性才能给按钮和输入框自定义样式*/

input {
    -webkit-appearance: none;
}


/*禁用长按页面时的弹出菜单*/

img,
a {
    -webkit-touch-callout: none;
}

a {
    color: #666;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    vertical-align: middle;
}

div {
    /* css3 盒子模型 */
    box-sizing: border-box;
}

.clearfix:after {
    content: "";
    display: block;
    line-height: 0;
    visibility: hidden;
    height: 0;
    clear: both;
}

.app {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 45px;
    width: 100%;
    min-width: 320px;
    max-width: 640px;
    background-color: #333333;
    overflow: hidden;
}

.app ul li {
    width: 100%;
    float: left;
    height: 45px;
    background-color: #333333;
    line-height: 45px;
    text-align: center;
    color: #fff;
}

.app ul li:first-child {
    width: 8%;
}

.app ul li:nth-child(2) {
    width: 10%;
}

.app ul li:nth-child(3) {
    width: 57%;
}

.app ul li:last-child {
    width: 25%;
    background-color: #F63515;
}

.app ul li:first-child img {
    width: 10px;
}

.app ul li:nth-child(2) img {
    width: 30px;
    vertical-align: middle;
}

.search-wrap {
    position: fixed;
    height: 44px;
    width: 100%;
    min-width: 320px;
    max-width: 640px;
    overflow: hidden;
}

.search-btn {
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
    width: 40px;
    height: 44px;
}


/* 结构比样式重要 */

.search-btn::before {
    content: "";
    display: block;
    width: 20px;
    height: 18px;
    background: url(../images/s-btn.png) no-repeat;
    background-size: 20px 18px;
    margin: 14px 0 0 15px
}

.search-login {
    position: absolute;
    right: 0;
    top: 0;
    height: 44px;
    width: 40px;
    background-color: transparent;
    color: #fff;
    line-height: 44px;
}

.search {
    position: relative;
    background-color: #fff;
    height: 30px;
    margin: 0px 50px;
    margin-top: 7px;
    border-radius: 50px;
}

.search .jd-icon {
    width: 20px;
    height: 15px;
    position: absolute;
    top: 8px;
    left: 13px;
    background: url(../images/jd.png) no-repeat;
    background-size: 20px 15px;
}

.search .jd-icon::after {
    content: "";
    position: absolute;
    top: 0px;
    right: -8px;
    display: block;
    width: 1px;
    height: 15px;
    background-color: #ccc;
}

.spirit-fdj {
    position: absolute;
    top: 8px;
    left: 50px;
    width: 18px;
    height: 15px;
    background: url(../images/jd-sprites.png) no-repeat -81px 0;
    background-size: 200px auto;
}


/* 主体部分 */


/* 轮播图 */

.main-focus {
    margin-top: 44px;
}

.main-content .main-focus img {
    width: 100%;
}


/* 品牌图 */

.brand {
    transform: translate(0, -10px);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.brand div {
    float: left;
    width: 33.33%;
}

.brand img {
    width: 100%;
}


/* 导航栏 */

.nav {
    text-align: center;
}

.nav a {
    float: left;
    width: 20%;
    color: #666;
}

.nav a img {
    width: 44px;
    margin: 10px 0;
}

.nav a span {
    display: block;
}


/* 新闻*/

.news {
    margin-top: 20px;
}

.news a:nth-child(1) {
    width: 50%;
}

.news a:nth-child(n+2) {
    box-sizing: border-box;
    width: 25%;
    border-left: 1px solid #ccc;
}

.news a {
    float: left;
}

.news a img {
    width: 100%;
}